<template>
  <div class="anonymous-detail">
    <title-line :title="detail.noticeTitle"></title-line>
    <div class="content-container" v-html="detail.noticeContent"></div>
  </div>
</template>
<script setup>
import { useRoute } from "vue-router";
import TitleLine from "@/components/Title/title-line.vue";
import { getNoticeDetail } from "@/api/apply/index.js";
import { onMounted } from "vue";
import { de } from "element-plus/es/locales.mjs";

const route = useRoute();
const detail = ref({});

onMounted(async () => {
  getNoticeDetail(route.query.id).then(({ data }) => {
    detail.value = data;
  });
});
</script>

<style scoped lang="scss">
.content-container {
  border: #dcdfe6 solid 1px;
  background-color: #fff;
  margin: 20px;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: normal;
}
</style>
